$OpenBSD: patch-include_maxminddb_h,v 1.1 2017/06/04 10:57:59 espie Exp $

Index: include/maxminddb.h
--- include/maxminddb.h.orig
+++ include/maxminddb.h
@@ -115,7 +115,17 @@ typedef struct MMDB_entry_data_s {
 #endif
         bool boolean;
         float float_value;
-    };
+    } u;
+#define pointer u.pointer
+#define utf8_string u.utf8_string
+#define double_value u.double_value
+#define uint16 u.uint16
+#define uint32 u.uint32
+#define int32 u.int32
+#define uint64 u.uint64
+#define uint128 u.uint128
+#define boolean u.boolean
+#define float_value u.float_value
     /* This is a 0 if a given entry cannot be found. This can only happen
      * when a call to MMDB_(v)get_value() asks for hash keys or array
      * indices that don't exist. */
